Non-negative matrix factorization face recognition method and system based on kernel machine learning

ABSTRACT

The invention provides a non-negative matrix factorization face recognition method and system based on kernel machine learning, which comprises five steps. The invention has the following beneficial effects: the invention avoids the learning of the inaccurate pre-image matrix by directly learning two kernel matrices, Kwx and Kww, and avoids the derivation of the kernel function in the iterative formula by changing the learning object, so that there is no limit to the selection of kernel function and a general algorithm for any kernel function is obtained.

BACKGROUND OF THE INVENTION Technical Field

The invention relates to the field of computer technology, and more particularly, to a non-negative matrix factorization face recognition method and system based on kernel machine learning.

Description of Related Art

In the field of computer vision and pattern recognition, face recognition has become popular in research. In many aspects of criminal investigation, identification and video surveillance, face recognition technology has become an important application, and these aspects are closely related with people's lives. Therefore, the present patent has an important theoretical and practical value for the research of non-linear non-negative matrix factorization face recognition algorithm based on kernel method.

The face recognition technology can be traced back to the late 19^(th) century. As the technology continues to evolve, in some of prior face recognition technologies, a popular method is to represent the raw data with a set of baselines. The specific form is to decompose the data matrix formed by the original data into the product of two matrices. Lee and Seung proposed a non-negative matrix factorization (NMF) algorithm based on non-negative constraints. The NMF algorithm decomposes the non-negative matrix X into X=WH, wherein W is a basis matrix, H is a coefficient matrix, and the two matrices are both non-negative. Specifically, the algorithm is a constrained optimization problem, which guarantees the non-negativeness of all elements in the result that the objective function satisfies the decomposition. The solution to the objective function is an iterative formula obtained by the gradient descent method. The algorithm is simple to implement, and can guarantee that the result of the decomposition will not be negative, which is also consistent with the non-negative gray scale of face images.

The non-negative matrix factorization algorithm is a classic linear feature extraction and dimension reduction method, and when we apply to face recognition, because of the different illumination of face images, different gestures, different expressions and other factors, the data of the face image are very complicated in the pattern space and often show a non-linear distribution, so these linear methods are hard to have good effects in dealing with non-linear problems. To solve the problem of non-linearity of face recognition, researchers have proposed some non-linear methods. The most popular one is the kernel method. The basic idea of the kernel method is to map the original sample into a high-dimensional kernel space F using non-linear mapping and then classify it in the kernel space using linear methods. However, there are two main problems with the kernel method. On one hand, the dimensionality of the kernel space F is generally much larger than the dimensionality of the original sample space, and even infinite dimension; on the other hand, it is very difficult for people to find an analytic expression of the non-linear mapping of the kernel method. Fortunately, these problems can be solved by a kernel trick. The linear method appears mainly in the form of inner product of non-linear mapping image in the kernel space, and the inner product can be represented by kernel function. The representative kernel functions include RBF kernel and polynomial kernel. The non-negative matrix factorization algorithm which is extended to the kernel space to solve the non-linear problem of face recognition is the kernel non-negative matrix factorization (KNMF) algorithm. The main idea of the KNMF algorithm is to represent the non-linearly mapped sample φ(X) as φ(X)=φ(W)H with a set of baselines in a high-dimensional space, wherein the coefficient H, which is linearly expressed in a high-dimensional space, is a new feature of the original sample. The results show that the performance of non-negative matrix factorization algorithm based on the kernel method is better than that of the linear method.

Buciu, I. and Nikolaidis, N., et al. made a great contribution and proposed a polynomial kernel-based non-negative matrix factorization (PNMF). In PNMF, the samples are first mapped into the polynomial kernel space, and then a non-negative coefficient matrix and a set of non-negative basis images are found, so that the non-linearly mapped training samples can be linearly represented by the non-linearly mapped basis images. The iterative formulas of the pre-image matrix and feature matrix are obtained by the gradient descent method. This algorithm can successfully generate a non-linear non-negative matrix factorization algorithm. However, because of the derivation of the kernel function during the iteration process, a non-linear algorithm is designed for the polynomial kernel and not suitable for other kernel functions.

In order to solve such a problem, Zafeiriou S. and Petrou M. proposed a projection gradient kernel non-negative matrix factorization (PGKNMF) based on the PNMF algorithm. The algorithm re-establishes a new objective function for the pre-image matrix, thus avoiding the derivation of the kernel function; the convergence point of the algorithm is fixed, and the use of the kernel function is not limited, but the algorithm still needs to learn the pre-image, and the iterative formula is more complicated, so experimental results will still be affected.

In recent years, some scholars also continue to improve the NMF algorithms, most of which only modify the objective function. To sum up, some existing NMF algorithms based on kernel machine learning need to learn the pre-images and also have more stringent requirements on the choice of the kernel function, so the algorithms cannot be generalized for any kernel function and are more complicated.

In the prior art:

1. Kernel method: The core idea of the kernel method is to find a non-linear mapping, to map the linear inseparable data to a high-dimensional space F, making it linearly separable in this high-dimensional space F; then classify it in this high-dimensional space F in a linear way. However, the dimension of F may be large or infinite. Therefore, how to choose such a non-linear mapping is also a problem. Fortunately, this problem can be solved with the kernel trick. Since the inner product of two samples which are non-linearly mapped can be represented by a kernel function:

k(x,y)=

φ(x),φ(y)

_(F),

wherein x, y belongs to the sample space. Using the kernel trick, the non-linear methods can be successfully implemented.

2. Kernel-based non-negative matrix factorization (KNMF) algorithm: The algorithm first maps a non-negative sample to a high-dimensional space F through a non-linear mapping φ: R₊ ^(m)→F; finds a matrix of pre-images and coefficients, so that the mapped sample can be approximated as a linear combination of the mapped pre-images:

${{\phi \left( x_{j} \right)} \approx {\sum\limits_{i = 1}^{r}{h_{ij}{\phi \left( w_{i} \right)}}}},$

wherein the feature h_(ij) and pre-image w_(i) are non-negative; the transformed matrix form is:

φ(X)≈φ(W)H,

wherein X is the sample matrix, φ(X)=[φ(x₁), φ(x₂), . . . , φ(x_(n))], φ(W)=[φ(w₁), φ(w₂), . . . , φ(w_(r))], the objective function of the KNMF algorithm is F(W,H)=½∥φ(X)−φ(W)H∥_(F) ², wherein the optimization problem to be solved is:

${\min\limits_{W,H}\; {{F\left( {W,H} \right)}\mspace{14mu} {s.t.\mspace{14mu} W}}} \geq {0\mspace{14mu} {and}\mspace{14mu} H} \geq 0.$

The iterative formula W and H can be obtained by the gradient descent method:

H ^((t+1)) =H ^((t)) ⊗K _(wx) ^((t))Ø(K _(ww) ^((t)) H ^((t))),

W ^((t+1)) =W ^((t))⊗(XK _(wx) ^(T(t)))Ø(W ^((t)) BK _(ww) ^(T(t))),

W ^((t+1)) =W ^((t+1)) ØS.

wherein B is a diagonal matrix [B]_(jj)=Σ_(i=1) ^(n)h_(ji), [S]_(jr)=Σ_(i=1) ^(m)[W]_(ir), [S]_(jr)=Σ_(i=1) ^(m)[W]_(ir) and [K′_(ww) ^((t))]_(ij)=d

w_(i) ^((t)),w_(j) ^((t))

^(d−1). The solution to the optimization problem is obtained by the method of cross-iteration.

The shortcomings of the prior art are as follows:

(1) The polynomial kernel-based non-negative matrix factorization (PNMF) is more common in the kernel-based NMF algorithm. In the PNMF, samples are first mapped into a polynomial kernel space and then perform the NMF in the kernel space. However, the convergence point of the PNMF algorithm is not necessarily a fixed point, and can only use the polynomial kernel.

(2) In order to solve some problems in PNMF, the researchers proposed the PGKNMF, wherein the convergence point is fixed and there is no restriction on the use of kernel function; however, the PGKNMF still needs to learn the pre-images.

BRIEF SUMMARY OF THE INVENTION

The invention provides a non-negative matrix factorization face recognition method based on kernel machine learning, which comprises the following steps:

A. each preset training sample image is represented as a column vector;

B. through the known kernel function and the training sample vector, a symmetric positive semi-definite kernel matrix K_(xx) is constructed;

C. three objective functions are respectively established and the objective functions are minimized by the method of cross-iteration, and the new features of the training samples in the kernel space and two kernel matrices related to the non-linearly mapped samples are obtained.

D. through the two kernel matrices obtained in the learning phase, the test sample is projected into the kernel space to obtain the new features of the test sample in the kernel space.

E. according to the nearest neighbor method, the new features of the test sample are compared with the preset centers of the new features of each type of training sample to realize the classification and identification of the test sample.

As a further improvement of the invention, in Step C, the formula of cross-iteration is:

H ^((t+1)) =H ^((t)) ⊗K _(wx)Ø(K _(ww) H),

K _(xw) ^((t+1)) =K _(xw) ^((t))⊗(K _(xx) H ^(T))Ø(K _(xw) ^((t)) HH ^(T)),

K _(ww) ^((t+1)) =K _(ww) ^((t))⊗(K _(wx) H ^(T) +HK _(xw))Ø(K _(ww) ^((t)) HH ^(T) +HH ^(T) K _(ww) ^((t))),

the final feature matrix H and two kernel matrices, K_(wx) and K_(ww), can be obtained by the method of cross-iteration.

As a further improvement of the invention, in Step C, the cross-iterative process comprises the following steps of:

(1) inputting the kernel matrix K_(xx);

(2) initializing the matrices H, K_(xw), K_(ww);

(3) fixing K_(xw), K_(ww) and updating H;

(4) fixing H, K_(ww) and updating K_(xw);

(5) fixing H, K_(xw) and updating K_(ww);

(6) determining and verifying whether the stop condition is satisfied, if the condition is satisfied, perform Step (7); otherwise, perform Step (3);

(7) the approximate solutions of H, K_(xw), K_(ww) are obtained.

As a further improvement of the invention, in Step D, the new feature H_(Y) of the test sample is obtained by the following three methods:

Method I:

the method of generalized inverse matrix directly by means of K_(xw) iterated, comprising:

H _(Y) =K _(xw) ⁺ K _(xy),

then each column of the matrix H_(Y) represents a new feature of the image to be classified;

Method II:

through the non-negative matrix factorization, K_(xy) and K_(xw) in K_(xy)=K_(xw)H_(Y) remain unchanged and the non-negative H_(Y) can be iterated by a non-negative matrix factorization formula:

H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t)));

Method III:

through the non-negative sparse representation, K_(xy) will be sparsely represented by K_(xw), wherein H_(Y) is a sparse coefficient matrix, and H_(Y) can be obtained by the iterative formula:

H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t))+λ1_(r×d));

wherein λ is a control parameter, 1_(r×d) is an all-one matrix with the size of r×d.

As a further improvement of the invention, in Step E, a distance between a new feature of each test sample and a new feature center of each type of training sample is calculated, and then the test image is classified according to the nearest neighbor method as the nearest distance class.

The invention further provides a non-negative matrix factorization face recognition system based on kernel machine learning, comprising:

a representation module, used for representing each preset training sample image as a column vector;

a construction module, used for constructing a symmetric positive semi-definite kernel matrix K_(xx) by the known kernel functions and training sample vectors;

a processing module, used for establishing three objective functions respectively and realizing the minimization of the objective function through the method of cross-iteration, and the new features of the training samples in the kernel space and two kernel matrices related to the non-linearly mapped samples are obtained;

a projection module, used for projecting the test sample into the kernel space through the two kernel matrices obtained in the learning phase to obtain the new features of the test sample in the kernel space;

a recognition module, used for comparing the new feature of the test sample with the preset center of the new feature of each type of training sample according to the nearest neighbor method to realize the classification and identification of the test sample.

As a further improvement of the invention, in the processing module, the formula of cross-iteration is:

H ^((t+1)) =H ^((t)) ⊗K _(wx)Ø(K _(ww) H),

K _(xw) ^((t+1)) =K _(xw) ^((t))⊗(K _(xx) H ^(T))Ø(K _(xw) ^((t)) HH ^(T)),

K _(ww) ^((t+1)) =K _(ww) ^((t))⊗(K _(wx) H ^(T) +HK _(xw))Ø(K _(ww) ^((t)) HH ^(T) +HH ^(T) K _(ww) ^((t))),

The final feature matrix H and two kernel matrices, K_(wx) and K_(ww), can be obtained by the method of cross-iteration.

As a further improvement of the invention, the processing module comprises:

an input module, used for inputting the kernel matrix K_(xx);

an initialization module, used for initializing the matrices H, K_(xw), K_(ww);

a first processing module, used for fixing K_(xw), K_(ww), and updating H;

a second processing module, used for fixing H, K_(ww), and updating K_(xw);

a third processing module, used for fixing H, K_(xw) and updating K_(ww);

a judging module, used for judging and verifying whether the stop condition is satisfied, and if the condition is satisfied, the approximate solutions of H, K_(xw), K_(ww) are obtained; otherwise, the first processing module is performed.

As a further improvement of the invention, in the projection module, the new feature H_(Y) of the test sample is obtained by the following three methods:

Method I:

the method of generalized inverse matrix directly by means of K_(xw) iterated, comprising:

H _(Y) =K _(xw) ⁺ K _(xy),

then each column of the matrix H_(Y) represents a new feature of the image to be classified;

Method II:

through the non-negative matrix factorization, K_(xy) and K_(xw) in K_(xy)=K_(xw)H_(Y) remain unchanged and the non-negative H_(Y) can be iterated by a non-negative matrix factorization formula:

H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t)));

Method III:

through the non-negative sparse representation, K_(xy) will be sparsely represented by K_(xw), wherein H_(Y) is a sparse coefficient matrix, and H_(Y) can be obtained by the iterative formula:

H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t))+λ1_(r×d)),

wherein λ is a control parameter, 1_(r×d) is an all-one matrix with the size of r×d.

As a further improvement of the invention, in the recognition module, a distance between a new feature of each test sample and a new feature center of each type of training sample is calculated, and then the test image is classified according to the nearest neighbor method as the nearest distance class.

The invention has the following beneficial effects: the invention avoids the learning of the pre-image matrix by directly learning two kernel matrices, K_(wx) and K_(ww), and avoids the derivation of the kernel function in the iterative formula by changing the learning object, so that there is no limit to the selection of kernel function and a general algorithm for any kernel function is obtained.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

FIG. 1 is a flow chart of the method of the invention;

FIG. 2 is a flow chart of cross-iteration of the invention; and

FIG. 3 is a diagram of the recognition rate of the method of the invention and the traditional PNMF algorithm in the ORL face database.

DETAILED DESCRIPTION OF THE INVENTION

As shown in FIG. 1, the invention provides a non-negative matrix factorization face recognition method based on kernel machine learning, which comprises the following steps:

in Step S1, each preset training sample image is represented as a column vector;

in Step S2, through the known kernel function and the training sample vector, a symmetric positive semi-definite kernel matrix is K_(xx) constructed;

in Step S3, three objective functions are respectively established and the objective functions are minimized by the method of cross-iteration, and the new features of the training samples in the kernel space and two kernel matrices related to the non-linearly mapped samples are obtained;

in Step S4, through the two kernel matrices obtained in the learning phase, the test sample is projected into the kernel space to obtain the new features of the test sample in the kernel space;

in Step S5, according to the nearest neighbor method, the new features of the test sample are compared with the preset centers of the new features of each type of training sample to realize the classification and identification of the test sample.

As shown in FIG. 2, the cross-iteration in the invention comprises the following steps:

Step Q1: inputting the kernel matrix K_(xx);

Step Q2: initializing the matrices H, K_(xw), K_(ww);

Step Q3: fixing K_(xw), K_(ww) and updating H;

Step Q4: fixing H, K_(ww) and updating K_(xw);

Step Q5: fixing H, K_(xw) and updating K_(ww);

Step Q6: determining whether the verification satisfies the stop condition, if the condition is satisfied, perform Step Q7; otherwise, perform Step Q3;

Step Q7: the approximate solution of H, K_(xw), K_(ww) is obtained.

X is set as a training sample matrix and the sample matrix is mapped to a high-dimensional space through a non-linear mapping φ, intended to represent the mapped sample as a linear combination of the mapped pre-images:

φ(X)=φ(W)H.

To avoid the learning of the pre-image, three error functions are established:

$\begin{matrix} {F_{1} = {{{\phi (X)} - {{\phi (W)}H}}}_{F}^{2}} \\ {{= {{tr}\left\lbrack {K_{xx} - {K_{xw}H} - {H^{T}K_{wx}} + {H^{T}K_{ww}H}} \right\rbrack}},} \end{matrix}$ $\begin{matrix} {F_{2} = {\frac{1}{2}{{{\phi (X)}^{T}\left\lbrack {{\phi (X)} - {{\phi (W)}H}} \right\rbrack}}_{F}^{2}}} \\ {{= {\frac{1}{2}{{tr}\left\lbrack {{K_{xx}K_{xx}^{T}} + {K_{xw}{HH}^{T}K_{wx}} - {K_{xx}H^{T}K_{wx}} - {K_{xw}{HK}_{xx}}} \right\rbrack}}},} \end{matrix}$ $\begin{matrix} {F_{3} = {{{\phi (X)}^{T}\left\lbrack {{\phi (X)} - {{\phi (W)}H}} \right\rbrack}}_{F}^{2}} \\ {{= {{tr}\left( {{K_{wx}K_{xw}} + {K_{ww}{HH}^{T}K_{ww}} - {K_{wx}H^{T}K_{ww}} - {K_{ww}{HK}_{xw}}} \right)}},} \end{matrix}$

wherein [K_(xx)]_(ij)=

φ(x_(i)),φ(x_(j))

=k(x_(i),x_(j)), the RBF kernel function,

${{k\left( {x,y} \right)} = {\exp\left( {- \frac{{{x - y}}^{2}}{t}} \right)}},$

t>0, is used in the invention. [K_(ww)]_(ij)=

φ(x_(i)),φ(x_(j))

=k(x_(i),x_(j)), [K_(xw)]_(ij)=

φ(x_(i)),φ(x_(j))

=k(x_(i),x_(j)), and K_(wx)=K_(xw) ^(T). The three objective functions essentially reflect the degree of approximation after the decomposition of φ(X).

The problem of solving the feature matrix then evolves into three sub-problems. Two matrices in the feature matrix H and kernel matrix K_(xw), K_(ww), are fixed respectively, and the remaining one matrix is studied, that is:

$\begin{matrix} {{\min \mspace{11mu} {F_{1}(H)}},{{s.t.\mspace{14mu} H} \geq 0}} & (1) \\ {{\min \mspace{11mu} {F_{2}\left( K_{xw} \right)}\mspace{14mu} {s.t.\mspace{14mu} K_{xw}}} \geq {0\mspace{14mu} {and}}} & (2) \\ {{\min \mspace{11mu} {F_{3}\left( K_{ww} \right)}\mspace{14mu} {s.t.\mspace{14mu} K_{ww}}} \geq 0.} & (3) \end{matrix}$

By solving these three sub-problems, a new feature H and two kernel matrices, K_(xw), K_(ww), of the mapped training sample are obtained.

Learning of the feature matrix H:

For Sub-problem (1), two kernel matrices, K_(xw), K_(ww), are fixed and the feature matrix H are studied. The iterative formula of H is obtained by the gradient descent method. According to the gradient descent method:

H ^((t+1)) =H ^((t))−ρ₁(H ^((t)))⊗∇F ₁(H ^((t))),  (4)

wherein ρ₁(H^((t))) is a step matrix, ∇F₁(H) is the gradient of F₁ related to H.

∇F ₁(H)=K _(ww) H−K _(wx).

To ensure the non-negativeness of H in every iteration, the step matrix is selected as:

ρ₁ =HØ(K _(ww) H),

The selected step matrix ρ₁ is taken into the iterative formula H that can be obtained from (4), with the theorem as follows.

Theorem 1: the kernel matrices, K_(wx) and K_(ww), are fixed, the objective function F₁ is non-increasing, and the feature matrix H in Sub-problem (1) is updated by the following iterative method:

H ^((t+1)) =H ^((t)) ⊗K _(wx)Ø(K _(ww) H).

Learning of the kernel matrix K_(xw):

For Sub-problem (2), according to the gradient descent method:

K _(xw) ^((t+1)) =K _(xw) ^((t))−ρ₂ ^((t)) ⊗∇F ₂(K _(xw) ^((t))),  (5)

wherein ρ₂ is a step matrix, ∇F₂(K_(xw)) is the gradient of F₂ related to the objective function K_(xw).

∇F ₂(K _(xw))=K _(xw) HH ^(T) −K _(xx) H ^(T).

To ensure the non-negativeness of K_(xw) in every iteration, the step matrix ρ₂ is selected as:

ρ₂ ^((t)) =K _(wx) ^((t))⊗(K _(xw) ^((t)) HH ^(T)),

ρ₂ is taken into (5) to obtain the iterative formula of K_(xw), with the theorem as follows:

Theorem 2: the kernel matrices, H and K_(ww), are fixed, the objective function F₂ is non-increasing, and the feature matrix K_(xw) in Sub-problem (2) is updated by the following iterative method:

K _(xw) ^((t+1)) =K _(xw) ^((t))⊗(K _(xx) H ^(T))Ø(K _(xw) ^((t)) HH ^(T)).

Learning of the kernel matrix K_(ww):

For Sub-problem (3), according to the gradient descent method:

K _(ww) ^((t+1)) =K _(ww) ^((t))−ρ₃ ^((t)) ⊗∇F ₃(K _(ww) ^((t))),  (6)

wherein ρ₃ is a step matrix, ∇F₃(K_(ww)) is the gradient of F₃ related to the objective function K_(ww).

∇F ₃(K _(ww))=K _(ww) HH ^(T) +HH ^(T) K _(ww) −K _(wx) H ^(T) −HK _(xw),

To ensure the non-negativeness of K_(ww) in every process of iteration, the step matrix ρ₃ is selected as:

ρ₃ ^((t)) =K _(ww) ^((t))Ø(K _(ww) ^((t)) HH ^(T) +HH ^(T) K _(ww) ^((t))),

ρ₃ is taken into (6) to obtain the iterative formula of K_(ww), with the theorem as follows:

Theorem 3: the feature matrix H and kernel matrix K_(xv) are fixed, the objective function F₃ is non-increasing, and the feature matrix K_(ww) in Sub-problem (3) is updated by the following iterative method:

K _(ww) ^((t+1)) =K _(ww) ^((t))⊗(K _(wx) H ^(T) +HK _(xw))Ø(K _(ww) ^((t)) HH ^(T) +HH ^(T) K _(ww) ^((t))).

To sum up, through Theorem 1, Theorem 2 and Theorem 3, the iterative formula of the non-negative matrix factorization algorithm based on kernel machine learning proposed in the present patent can be obtained:

H ^((t+1)) =H ^((t)) ⊗K _(wx)Ø(K _(ww) H),

K _(xw) ^((t+1)) =K _(xw) ^((t))⊗(K _(xx) H ^(T))Ø(K _(xw) ^((t)) HH ^(T)),

K _(ww) ^((t+1)) =K _(ww) ^((t))⊗(K _(wx) H ^(T) +HK _(xw))Ø(K _(ww) ^((t)) HH ^(T) +HH ^(T) K _(ww) ^((t))),

The final feature matrix H and two kernel matrices, K_(wx) and K_(ww), can be obtained by the method of cross-iteration.

Extraction of Features:

For the test sample Y, the matrix of test sample mapped to the kernel space by non-linear mapping is ϕ(Y), which is represented by the mapped pre-image ϕ(W) in the kernel space:

φ(Y)=φ(W)H _(Y)⇒

φ(X)^(T)φ(Y)=φ(X)^(T)φ(W)H _(Y)⇒

K _(xy) =K _(xw) H _(Y)

wherein Y∈R^(m×d) is the matrix of all the test samples, [K_(xy)]_(ij)=k(x_(i),y_(j)). The new feature H_(Y) of the test sample is obtained by the following three methods:

Method I:

the method of generalized inverse matrix directly by means of K_(xw) iterated, comprising:

H _(Y) =K _(xw) ⁺ K _(xy).

then each column of the matrix H_(Y) represents a new feature of the image to be classified.

Method II:

through the non-negative matrix factorization, K_(xy) and K_(x), in K_(xy)=K_(xw)H_(Y) remain unchanged and the non-negative H_(Y) can be iterated by a non-negative matrix factorization formula:

H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t)));

Method III:

through the non-negative sparse representation, K_(xy) will be sparsely represented by K_(xw), wherein H_(Y) is a sparse coefficient matrix, and H_(Y) can be obtained by the iterative formula:

H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t))+λ1_(r×d));

wherein λ is a control parameter, 1_(r×d) is an all-one matrix with the size of r×d.

Through the iterative H, the center of the new feature of each type of training sample is obtained. A distance between a new feature of each test sample and a new feature center of each type of training sample is calculated, and then the test image is classified according to the nearest neighbor method as the nearest distance class.

The invention further provides a non-negative matrix factorization face recognition system based on kernel machine learning, comprising:

a representation module, used for representing each preset training sample image as a column vector;

a construction module, used for constructing a symmetric positive semi-definite kernel matrix K_(xx) by the known kernel functions and training sample vectors;

a processing module, used for establishing three objective functions respectively and realizing the minimization of the objective function through the method of cross-iteration, and the new features of the training samples in the kernel space and two kernel matrices related to the non-linearly mapped samples are obtained;

a projection module, used for projecting the test sample into the kernel space through the two kernel matrices obtained in the learning phase to obtain the new features of the test sample in the kernel space;

a recognition module, used for comparing the new feature of the test sample with the preset center of the new feature of each type of training sample according to the nearest neighbor method to realize the classification and identification of the test sample.

In the processing module, the formula of cross-iteration is:

H ^((t+1)) =H ^((t)) ⊗K _(wx)Ø(K _(ww) H),

K _(xw) ^((t+1)) =K _(xw) ^((t))⊗(K _(xx) H ^(T))Ø(K _(xw) ^((t)) HH ^(T)),

K _(ww) ^((t+1)) =K _(ww) ^((t))⊗(K _(wx) H ^(T) +HK _(xw))Ø(K _(ww) ^((t)) HH ^(T) +HH ^(T) K _(ww) ^((t))),

The final feature matrix H and two kernel matrices, K_(wx) and K_(ww), can be obtained by the method of cross-iteration.

The processing module, comprising:

an input module, used for inputting the kernel matrix K_(xx);

an initialization module, used for initializing the matrices H, K_(xw), K_(ww);

a first processing module, used for fixing K_(xw), K_(ww) and updating H;

a second processing module, used for fixing H, K_(ww) and updating K_(xw);

a third processing module, used for fixing H, K_(xw), and updating K_(ww);

a judging module, used for judging and verifying whether the stop condition is satisfied, and if the condition is satisfied, the approximate solution of H, K_(xw), K_(ww) is obtained; otherwise, the first processing module is performed.

In the projection module, the new feature H_(Y) of the test sample is obtained by the following three methods:

Method I:

the method of generalized inverse matrix directly by means of K_(xw) iterated, comprising:

H _(Y) =K _(xw) ⁺ K _(xy),

then each column of the matrix H_(Y) represents a new feature of the image to be classified;

Method II:

through the non-negative matrix factorization, K_(xy) and K_(xw) in K_(xy)=K_(xw)H_(Y) remain unchanged and the non-negative H_(Y) can be iterated by a non-negative matrix factorization formula:

H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t)));

Method III:

through the non-negative sparse representation, K_(xy) will be sparsely represented by K_(xw), wherein H_(Y) is a sparse coefficient matrix, and H_(Y) can be obtained by the iterative formula:

H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t))+λ1_(r×d));

wherein λ is a control parameter, 1_(r×d) is an all-one matrix with the size of r×d.

In the recognition module, a distance between a new feature of each test sample and a new feature center of each type of training sample is calculated, and then the test image is classified according to the nearest neighbor method as the nearest distance class.

The beneficial effects of the invention are as below:

1. the invention avoids the learning of the pre-image matrix by directly learning two kernel matrices, K_(wx) and K_(ww);

2. the invention avoids the derivation of the kernel function in the iterative formula by changing the learning object, so that there is no limit to the selection of kernel function and a general algorithm for any kernel function is obtained;

3. through the new iterative formula obtained, such an algorithm generalized for any kernel function becomes more convenient;

4. through the comparison of the experimental data in a public common face database, the algorithm achieves a higher recognition accuracy by verifying the effectiveness of the new algorithm.

TABLE 1 Recognition rate of the algorithm proposed in the invention and the traditional PNMF algorithm in the ORL face database (%) TN 2 3 4 5 6 7 8 9 PNMF 80.97 85.76 89.91 92.50 94.04 93.74 95.14 93.57 Proposed 85.89 86.98 92.24 93.50 95.26 95.96 96.83 98.82 Method

FIG. 3 is a diagram of the recognition rate of the method of the invention and the traditional PNMF algorithm in the ORL face database.

The invention only needs to learn the kernel matrix, and the method is simple and practical by establishing three different objective functions to learn the feature matrix and two kernel matrices respectively.

Explanation of Key Words:

Non-negative matrix factorization (NMF): the idea of NMF is to approximately factorize the non-negative sample matrix X to the product of two non-negative matrices:

X _(m×n) ≈W _(m×r) H _(r×n),

wherein W_(m×r) and H_(r×n) are non-negative matrices. Each column of W is called the pre-image matrix and H is a coefficient matrix.

Kernel non-negative matrix factorization (KNMF): the idea of KNMF is to map a non-negative sample matrix into a high-dimensional space through a non-linear mapping φ. The non-negative sample matrix to be mapped is approximately factorized into the product of the pre-image matrix and the coefficient matrix that are mapped:

φ(X _(m×n))≈φ(W _(m×r))H _(r×n),

wherein W_(m×r) and H_(r×n) are non-negative matrices.

The foregoing are further detailed for the invention in combination with detailed preferable embodiments, but are not intended to limit detailed embodiments of the invention. Those skilled in the art can make a variety of simple deductions or variations without deviating from the principle of the invention, and all these should be covered in the protection scope of the invention. 

1. A non-negative matrix factorization face recognition method based on kernel machine learning, comprising the following steps: (A) each preset training sample image is represented as a column vector; (B) through a known kernel function and a known training sample vector, a symmetric positive semi-definite kernel matrix K_(xx) is constructed; (C) three objective functions are respectively established and the objective functions are minimized by a method of cross-iteration, and new features of the training samples in a kernel space and two kernel matrices related to non-linearly mapped samples are obtained; (D) through the two kernel matrices obtained in the learning phase, a test sample is projected into the kernel space to obtain new feature of the test sample in the kernel space; (E) according to a nearest neighbor method, the new features of the test sample are compared with preset centers of the new features of each type of training sample to realize a classification and identification of the test sample.
 2. The non-negative matrix factorization face recognition method as claimed in claim 1, wherein in Step C, the formulae of cross-iteration are: H ^((t+1)) =H ^((t)) ⊗K _(wx)Ø(K _(ww) H), K _(xw) ^((t+1)) =K _(xw) ^((t))⊗(K _(xx) H ^(T))Ø(K _(xw) ^((t)) HH ^(T)), K _(ww) ^((t+1)) =K _(ww) ^((t))⊗(K _(wx) H ^(T) +HK _(xw))Ø(K _(ww) ^((t)) HH ^(T) +HH ^(T) K _(ww) ^((t))), wherein a final feature matrix H and the two kernel matrices, K_(wx) and K_(ww), can be obtained by the method of cross-iteration.
 3. The non-negative matrix factorization face recognition method as claimed in claim 1, wherein in Step C, the cross-iterative process comprises the following steps of: (1) inputting the kernel matrix K_(xx); (2) initializing matrices H, K_(xw), K_(ww); (3) fixing K_(xw), K_(ww) and updating H; (4) fixing H, K_(ww) and updating K_(xw); (5) fixing H, K_(xw) and updating K_(ww); (6) determining and verifying whether a stop condition is satisfied, if the stop condition is satisfied, perform Step (7); otherwise, perform Step (3); (7) the approximate solutions of H, K_(xw), K_(ww) are obtained.
 4. The non-negative matrix factorization face recognition method as claimed in claim 1, wherein in Step D, the new feature H_(Y) of the test sample is obtained by the following three methods: Method I: method of directly utilizing generalized inverse matrix of iterated K_(xw), comprising: H _(Y) =K _(xw) ⁺ K _(xy), then each column of the matrix H_(Y) represents a new feature of the image to be classified; Method II: through non-negative matrix factorization, K_(xy), and K_(xw) in K_(xy)=K_(xw)H_(Y) remain unchanged and the non-negative H_(Y) can be iterated by a non-negative matrix factorization formula: H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t))); Method III: through a non-negative sparse representation, K_(xy) will be sparsely represented by K_(xw), wherein H_(Y) is a sparse coefficient matrix, and H_(Y) can be obtained by the iterative formula: H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t))+λ1_(r×d)); wherein, λ is a control parameter, 1_(r×d) is an all-one matrix with a size of r×d.
 5. The non-negative matrix factorization face recognition method as claimed in claim 1, wherein in Step E, a distance between a new feature of each test sample and a new feature center of each type of training sample is calculated, and then the test image is classified according to the nearest neighbor method as a nearest distance class.
 6. A non-negative matrix factorization face recognition system based on kernel machine learning, comprising: a representation module, used for representing each preset training sample image as a column vector; a construction module, used for constructing a symmetric positive semi-definite kernel matrix K_(xx) by a known kernel function and the known training sample vectors; a processing module, used for establishing three objective functions respectively and realizing a minimization of the objective function through a method of cross-iteration, and new features of the training samples in a kernel space and two kernel matrices related to non-linearly mapped samples are obtained; a projection module, used for projecting a test sample into the kernel space through the two kernel matrices obtained in the learning phase to obtain new features of the test sample in the kernel space; a recognition module, used for comparing the new feature of the test sample with a preset center of the new feature of each type of training sample according to the nearest neighbor method to realize a classification and identification of the test sample.
 7. The non-negative matrix factorization face recognition system as claimed in claim 6, wherein in the processing module, formula of the cross-iteration is: H ^((t+1)) =H ^((t)) ⊗K _(wx)Ø(K _(ww) H), K _(xw) ^((t+1)) =K _(xw) ^((t))⊗(K _(xx) H ^(T))Ø(K _(xw) ^((t)) HH ^(T)), K _(ww) ^((t+1)) =K _(ww) ^((t))⊗(K _(wx) H ^(T) +HK _(xw))Ø(K _(ww) ^((t)) HH ^(T) +HH ^(T) K _(ww) ^((t))), wherein a final feature matrix H and the two kernel matrices, K_(wx) and K_(ww), can be obtained by the method of cross-iteration.
 8. The non-negative matrix factorization face recognition system as claimed in claim 6, wherein the processing module comprises: an input module, used for inputting the kernel matrix K_(xx); an initialization module, used for initializing matrices H, K_(xw), K_(ww); a first processing module, used for fixing K_(xw), K_(ww) and updating H; a second processing module, used for fixing H, K_(ww) and updating K_(xw); a third processing module, used for fixing H, K_(xw) and updating K_(ww); a judging module, used for judging and verifying whether a stop condition is satisfied, and if the stop condition is satisfied, the approximate solutions of H, K_(xw), K_(ww) are obtained; otherwise, the first processing module is performed.
 9. The non-negative matrix factorization face recognition system as claimed in claim 6, wherein in the projection module, the new feature H_(Y) of the test sample is obtained by the following three methods: Method I: method of directly utilizing generalized inverse matrix of iterated K_(xw), comprising: H _(Y) =K _(xw) ⁺ K _(xy), then each column of the matrix H_(Y) represents a new feature of the image to be classified; Method II: through the non-negative matrix factorization, K_(xy) and K_(xw) in K_(xy)=K_(xw)H_(Y) remain unchanged and the non-negative H_(Y) can be iterated by a non-negative matrix factorization formula: H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t))); Method III: through a non-negative sparse representation, K_(xy) will be sparsely represented by K_(xw), wherein H_(Y) is a sparse coefficient matrix, and H_(Y) can be obtained by the iterative formula: H _(Y) ^((t+1)) =H _(Y) ^((t))⊗(K _(xw) ^(T) K _(xy))Ø(K _(xw) ^(T) K _(xw) H _(Y) ^((t))+λ1_(r×d)); wherein, λ is a control parameter, 1_(r×d) is an all-one matrix with a size of r×d.
 10. The non-negative matrix factorization face recognition system as claimed in claim 6, wherein in the recognition module, a distance between a new feature of each test sample and a new feature center of each type of training sample is calculated, and then the test image is classified according to the nearest neighbor method as the nearest distance class. 